package com.sbl.bajw.mapper;

import java.util.HashMap;
import java.util.List;

import com.sbl.bajw.pc.model.PrivilegeModel;


public interface PrivilegeDao {
	
	public void insert(PrivilegeModel model);
	
	public void update(PrivilegeModel model);
	
	public List<HashMap<String, String>> list();
	
	public List<HashMap<String, String>> listByRole();
	
	public void addPrivilegeToRole(HashMap<String, String> parm);
	
	public void deletePrivilegeByRole(String id);
	
	public void delete(String id);
	
	public void deletePrivilegeRole(String id);
	
	public List<PrivilegeModel> selectModels(PrivilegeModel parm);
	
	public PrivilegeModel getModel(String id);
	
	public int hasPrivilege(HashMap<String, String> parm);
	
	public List<HashMap<String, String>> getUserPrivilegeList();
}
